package net.ojbk.study.curriculumDesign.util;

import net.ojbk.study.curriculumDesign.service.impl.sall.SallServiceImpl;
import net.ojbk.study.curriculumDesign.service.sall.ISallService;

import java.util.Date;

public class Changeright implements Runnable{
    private ISallService sallService;

    public Changeright(ISallService sallService) {
        this.sallService=sallService;
    }

    @Override
    public void run() {
        for (;;){
            sallService.maintenancedata(new Date());
            try {
                Thread.sleep(10000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
